package com.salt.core.redis.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description redis配置
 * @Author salt
 * @Date 2020/8/27 16:30
 * @Version 1.0
 */
@Getter
@Setter
@ConfigurationProperties("spring.redis.serializer.type")
public class SaltRedisSerializerProperties {
    /**
     * 序列化方式
     */
    private SerializerType serializerType = SerializerType.JDK;

    public enum SerializerType {
        /**
         * ProtoStuff 序列化
         */
        ProtoStuff,
        /**
         * json 序列化
         */
        JSON,
        /**
         * jdk 序列化
         */
        JDK
    }
}
